package com.gupao.pattern.factory.abstr;

import com.gupao.pattern.factory.simple.Iphone;
import com.gupao.pattern.factory.simple.Vivo;

public class AbstrFactoryTest {

    public static void main(String[] args) {
        DefaultFactory defaultFactory = new DefaultFactory();
        Iphone iphone = defaultFactory.getIphone();
        iphone.start();
        iphone.call();
        iphone.shutdown();

        Vivo vivo = defaultFactory.getVivo();
        vivo.start();
        vivo.call();
        vivo.shutdown();

    }
}
